package com.zbf.tspring.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/3/22  8:30
 * 描述:
 */

@Mapper
@Repository
public interface TestDao {


    @Update("update base_order set quantity=#{quantity} where id=#{id}")
    public int updateOrder(Map<String,Object> map);


    @Update("update base_stock set stock=#{quantity} where id=#{id}")
    public int updateStock(Map<String,Object> map);

}
